<%= div_tag 'div_qe_', question %>
  <div class="question-list-item">
    <% if question.removed_at.nil? %>
    <div class="question-list-item-title">
      <div class="left">
        <h4><%= question.current_version.question_type.name %></h4>
      </div>
      <div class="right">
        <p>
          <%= link_to '废弃', question, method: :delete, data: { confirm: '确认题目废弃？（不可恢复）' } %>
        </p>
      </div>
    </div>
    <div class="question-list-item-content">
      <%= render question.current_version %>
    </div>
    <div class="question-list-item-meta">
      <% if !question.current_version.vote.new_record? %>
      <div class="left">
        <%= render question.current_version.vote %>
      </div>
      <% end %>
      <div class="right">
        <%= link_to "#{question.question_versions.count}个版本
        #{question.topic.remarks.count}条评论", question %>
      </div>
      <div class="clear"></div>
    </div>
    <% else %>

    <p>题目于
      <%= question.removed_at.localtime.to_s(:db) %>
      被<%= User.find(question.removed_by).name %>废弃</p>
    <p>
      <%= link_to '查看', question %>
    </p>
    
    <% end %>
  </div>
</div>
